//
//  hvCustomAnnotation.m
//  CustomMapCalloutAnnotation
//
//  Created by moon on 14-5-7.
//  Copyright (c) 2014年 hv. All rights reserved.
//

#import "hvCustomAnnotation.h"

@implementation hvCustomAnnotation
- (void)setCoordinate:(CLLocationCoordinate2D)newCoordinate{
	_coordinate = newCoordinate;
}
- (CLLocationCoordinate2D)coordinate{
	return _coordinate;
}
- (NSString *)title{
	return _title;
}
- (void)setTitle:(NSString *)title{
	_title = title;
}
- (NSString *)subtitle{
	return _subtitle;
}
- (void)setSubtitle:(NSString *)subtitle{
	_subtitle = subtitle;
}

- (id)initWithCoordinate:(CLLocationCoordinate2D)coordinate title:(NSString *)title subtitle:(NSString *)subtitle{
	if (self=[super init]) {
		self.coordinate = coordinate;
		[self setTitle:title];
		[self setSubtitle:subtitle];
	}
	return self;
}
@end
